package com.lvt.design.pattern.struct.composite.oa;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/12/3
 */
public class Employee extends HumanResource {
    public Employee(long id, double salary) {
        super(id);
        this.salary = salary;
    }

    @Override
    public double calculateSalary() {
        return salary;
    }
}
